<?php

$this->pageTitle = 'Map of publication location';
$this->pageSummary = sprintf(
	'A map plot of the location of \'%s\'.',
	$this->title
);

$this->navigationMenu()->addDefaultItems();
$this->actionBar()->addAction('Back to publication: '. $this->title, sprintf($this->baseUrl('/page/publication/%s/'), $this->title));
$this->actionBar()->addAction('Information about location', sprintf($this->baseUrl('/page/publication/dbpedia/%s/'), $this->title));

$this->navigation()->findById('title_index')->setLabel($this->title);
$this->navigation()->findById('title_index')->setParams(array('queryparam'=>$this->title));
?>
<script src="http://maps.google.com/maps?file=api&amp;v=2&amp;sensor=false&amp;key=ABQIAAAAptF_ImCpYQaAFALR5XMlxBReaja7GjqPWnWsKKfJMBtei8I4tBS5HVQlg3n_elCEJ6_YjgS28gqVJw"></script>
<script type="text/javascript">
function initialize() {
	if (GBrowserIsCompatible()) {
		var map = new GMap2(document.getElementById("map_canvas"));

		<?php
		echo 'var point = new GLatLng('.$this->location['x'].', '.$this->location['y'].');';
		echo 'map.addOverlay(new GMarker(point));';

		?>		
		map.setCenter(new GLatLng(0,0), 1);
		
	}
 }
</script>
<div id="map_canvas" style="width: 500px; height: 300px"></div>
